package com.so206.po;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

public class SystemUser implements Serializable {
    private Long id;

    /**
    * 用户名
    */
    private String user;

    /**
    * 密码
    */
    private String pwd;

    /**
    * 角色,1.系统管理员,2.普通用户
    */
    private Long role;

    private String showname;

    private String email;

    private String phone;

    private Integer age;

    private Integer sex;

    private Date cresteTime;

    private String createIp;

    private Date lastLoginTime;

    /**
    * key
    */
    private String appkey;

    /**
    * 用户余额
    */
    private BigDecimal balnes;

    /**
    * 收款真实姓名
    */
    private String zsname;

    /**
    * 收款方式:1.微信 2.支付宝 3.QQ
    */
    private Integer zspaytype;

    /**
    * 收款账号
    */
    private String zspayid;

    /**
    * 是否锁定账户:1.锁定  2.不锁定
    */
    private Integer isLocked;

    /**
    * 创建者id
    */
    private Long userParent;

    /**
    * 网站域名
    */
    private String url;

    /**
    * 是否自动提现:0.否,1.是
    */
    private Integer isAutoSett;

    /**
    * 银行代码
    */
    private String cardBankCode;

    /**
    * 支付宝交易费率
    */
    private BigDecimal payStaffAlipay;

    /**
    * 结算费率
    */
    private BigDecimal settStaff;

    /**
    * 会员支付宝交易费率
    */
    private BigDecimal vipPayStaffAlipay;

    /**
    * 会员提现费率
    */
    private BigDecimal vipSettStaff;

    private Integer payAlipay;

    private Integer payQqpay;

    private Integer payWxpay;

    /**
    * 微信交易费率
    */
    private BigDecimal payStaffWxpay;

    /**
    * qq钱包交易费率
    */
    private BigDecimal payStaffQqpay;

    /**
    * 会员QQ钱包交易费率
    */
    private BigDecimal vipPayStaffQqpay;

    /**
    * 会员微信交易费率
    */
    private BigDecimal vipPayStaffWxpay;

    /**
    * 最后登录ip
    */
    private String lastLoginIp;

    private static final long serialVersionUID = 1L;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getUser() {
        return user;
    }

    public void setUser(String user) {
        this.user = user;
    }

    public String getPwd() {
        return pwd;
    }

    public void setPwd(String pwd) {
        this.pwd = pwd;
    }

    public Long getRole() {
        return role;
    }

    public void setRole(Long role) {
        this.role = role;
    }

    public String getShowname() {
        return showname;
    }

    public void setShowname(String showname) {
        this.showname = showname;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public Integer getSex() {
        return sex;
    }

    public void setSex(Integer sex) {
        this.sex = sex;
    }

    public Date getCresteTime() {
        return cresteTime;
    }

    public void setCresteTime(Date cresteTime) {
        this.cresteTime = cresteTime;
    }

    public String getCreateIp() {
        return createIp;
    }

    public void setCreateIp(String createIp) {
        this.createIp = createIp;
    }

    public Date getLastLoginTime() {
        return lastLoginTime;
    }

    public void setLastLoginTime(Date lastLoginTime) {
        this.lastLoginTime = lastLoginTime;
    }

    public String getAppkey() {
        return appkey;
    }

    public void setAppkey(String appkey) {
        this.appkey = appkey;
    }

    public BigDecimal getBalnes() {
        return balnes;
    }

    public void setBalnes(BigDecimal balnes) {
        this.balnes = balnes;
    }

    public String getZsname() {
        return zsname;
    }

    public void setZsname(String zsname) {
        this.zsname = zsname;
    }

    public Integer getZspaytype() {
        return zspaytype;
    }

    public void setZspaytype(Integer zspaytype) {
        this.zspaytype = zspaytype;
    }

    public String getZspayid() {
        return zspayid;
    }

    public void setZspayid(String zspayid) {
        this.zspayid = zspayid;
    }

    public Integer getIsLocked() {
        return isLocked;
    }

    public void setIsLocked(Integer isLocked) {
        this.isLocked = isLocked;
    }

    public Long getUserParent() {
        return userParent;
    }

    public void setUserParent(Long userParent) {
        this.userParent = userParent;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public Integer getIsAutoSett() {
        return isAutoSett;
    }

    public void setIsAutoSett(Integer isAutoSett) {
        this.isAutoSett = isAutoSett;
    }

    public String getCardBankCode() {
        return cardBankCode;
    }

    public void setCardBankCode(String cardBankCode) {
        this.cardBankCode = cardBankCode;
    }

    public BigDecimal getPayStaffAlipay() {
        return payStaffAlipay;
    }

    public void setPayStaffAlipay(BigDecimal payStaffAlipay) {
        this.payStaffAlipay = payStaffAlipay;
    }

    public BigDecimal getSettStaff() {
        return settStaff;
    }

    public void setSettStaff(BigDecimal settStaff) {
        this.settStaff = settStaff;
    }

    public BigDecimal getVipPayStaffAlipay() {
        return vipPayStaffAlipay;
    }

    public void setVipPayStaffAlipay(BigDecimal vipPayStaffAlipay) {
        this.vipPayStaffAlipay = vipPayStaffAlipay;
    }

    public BigDecimal getVipSettStaff() {
        return vipSettStaff;
    }

    public void setVipSettStaff(BigDecimal vipSettStaff) {
        this.vipSettStaff = vipSettStaff;
    }

    public Integer getPayAlipay() {
        return payAlipay;
    }

    public void setPayAlipay(Integer payAlipay) {
        this.payAlipay = payAlipay;
    }

    public Integer getPayQqpay() {
        return payQqpay;
    }

    public void setPayQqpay(Integer payQqpay) {
        this.payQqpay = payQqpay;
    }

    public Integer getPayWxpay() {
        return payWxpay;
    }

    public void setPayWxpay(Integer payWxpay) {
        this.payWxpay = payWxpay;
    }

    public BigDecimal getPayStaffWxpay() {
        return payStaffWxpay;
    }

    public void setPayStaffWxpay(BigDecimal payStaffWxpay) {
        this.payStaffWxpay = payStaffWxpay;
    }

    public BigDecimal getPayStaffQqpay() {
        return payStaffQqpay;
    }

    public void setPayStaffQqpay(BigDecimal payStaffQqpay) {
        this.payStaffQqpay = payStaffQqpay;
    }

    public BigDecimal getVipPayStaffQqpay() {
        return vipPayStaffQqpay;
    }

    public void setVipPayStaffQqpay(BigDecimal vipPayStaffQqpay) {
        this.vipPayStaffQqpay = vipPayStaffQqpay;
    }

    public BigDecimal getVipPayStaffWxpay() {
        return vipPayStaffWxpay;
    }

    public void setVipPayStaffWxpay(BigDecimal vipPayStaffWxpay) {
        this.vipPayStaffWxpay = vipPayStaffWxpay;
    }

    public String getLastLoginIp() {
        return lastLoginIp;
    }

    public void setLastLoginIp(String lastLoginIp) {
        this.lastLoginIp = lastLoginIp;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", user=").append(user);
        sb.append(", pwd=").append(pwd);
        sb.append(", role=").append(role);
        sb.append(", showname=").append(showname);
        sb.append(", email=").append(email);
        sb.append(", phone=").append(phone);
        sb.append(", age=").append(age);
        sb.append(", sex=").append(sex);
        sb.append(", cresteTime=").append(cresteTime);
        sb.append(", createIp=").append(createIp);
        sb.append(", lastLoginTime=").append(lastLoginTime);
        sb.append(", appkey=").append(appkey);
        sb.append(", balnes=").append(balnes);
        sb.append(", zsname=").append(zsname);
        sb.append(", zspaytype=").append(zspaytype);
        sb.append(", zspayid=").append(zspayid);
        sb.append(", isLocked=").append(isLocked);
        sb.append(", userParent=").append(userParent);
        sb.append(", url=").append(url);
        sb.append(", isAutoSett=").append(isAutoSett);
        sb.append(", cardBankCode=").append(cardBankCode);
        sb.append(", payStaffAlipay=").append(payStaffAlipay);
        sb.append(", settStaff=").append(settStaff);
        sb.append(", vipPayStaffAlipay=").append(vipPayStaffAlipay);
        sb.append(", vipSettStaff=").append(vipSettStaff);
        sb.append(", payAlipay=").append(payAlipay);
        sb.append(", payQqpay=").append(payQqpay);
        sb.append(", payWxpay=").append(payWxpay);
        sb.append(", payStaffWxpay=").append(payStaffWxpay);
        sb.append(", payStaffQqpay=").append(payStaffQqpay);
        sb.append(", vipPayStaffQqpay=").append(vipPayStaffQqpay);
        sb.append(", vipPayStaffWxpay=").append(vipPayStaffWxpay);
        sb.append(", lastLoginIp=").append(lastLoginIp);
        sb.append("]");
        return sb.toString();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        SystemUser other = (SystemUser) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getUser() == null ? other.getUser() == null : this.getUser().equals(other.getUser()))
            && (this.getPwd() == null ? other.getPwd() == null : this.getPwd().equals(other.getPwd()))
            && (this.getRole() == null ? other.getRole() == null : this.getRole().equals(other.getRole()))
            && (this.getShowname() == null ? other.getShowname() == null : this.getShowname().equals(other.getShowname()))
            && (this.getEmail() == null ? other.getEmail() == null : this.getEmail().equals(other.getEmail()))
            && (this.getPhone() == null ? other.getPhone() == null : this.getPhone().equals(other.getPhone()))
            && (this.getAge() == null ? other.getAge() == null : this.getAge().equals(other.getAge()))
            && (this.getSex() == null ? other.getSex() == null : this.getSex().equals(other.getSex()))
            && (this.getCresteTime() == null ? other.getCresteTime() == null : this.getCresteTime().equals(other.getCresteTime()))
            && (this.getCreateIp() == null ? other.getCreateIp() == null : this.getCreateIp().equals(other.getCreateIp()))
            && (this.getLastLoginTime() == null ? other.getLastLoginTime() == null : this.getLastLoginTime().equals(other.getLastLoginTime()))
            && (this.getAppkey() == null ? other.getAppkey() == null : this.getAppkey().equals(other.getAppkey()))
            && (this.getBalnes() == null ? other.getBalnes() == null : this.getBalnes().equals(other.getBalnes()))
            && (this.getZsname() == null ? other.getZsname() == null : this.getZsname().equals(other.getZsname()))
            && (this.getZspaytype() == null ? other.getZspaytype() == null : this.getZspaytype().equals(other.getZspaytype()))
            && (this.getZspayid() == null ? other.getZspayid() == null : this.getZspayid().equals(other.getZspayid()))
            && (this.getIsLocked() == null ? other.getIsLocked() == null : this.getIsLocked().equals(other.getIsLocked()))
            && (this.getUserParent() == null ? other.getUserParent() == null : this.getUserParent().equals(other.getUserParent()))
            && (this.getUrl() == null ? other.getUrl() == null : this.getUrl().equals(other.getUrl()))
            && (this.getIsAutoSett() == null ? other.getIsAutoSett() == null : this.getIsAutoSett().equals(other.getIsAutoSett()))
            && (this.getCardBankCode() == null ? other.getCardBankCode() == null : this.getCardBankCode().equals(other.getCardBankCode()))
            && (this.getPayStaffAlipay() == null ? other.getPayStaffAlipay() == null : this.getPayStaffAlipay().equals(other.getPayStaffAlipay()))
            && (this.getSettStaff() == null ? other.getSettStaff() == null : this.getSettStaff().equals(other.getSettStaff()))
            && (this.getVipPayStaffAlipay() == null ? other.getVipPayStaffAlipay() == null : this.getVipPayStaffAlipay().equals(other.getVipPayStaffAlipay()))
            && (this.getVipSettStaff() == null ? other.getVipSettStaff() == null : this.getVipSettStaff().equals(other.getVipSettStaff()))
            && (this.getPayAlipay() == null ? other.getPayAlipay() == null : this.getPayAlipay().equals(other.getPayAlipay()))
            && (this.getPayQqpay() == null ? other.getPayQqpay() == null : this.getPayQqpay().equals(other.getPayQqpay()))
            && (this.getPayWxpay() == null ? other.getPayWxpay() == null : this.getPayWxpay().equals(other.getPayWxpay()))
            && (this.getPayStaffWxpay() == null ? other.getPayStaffWxpay() == null : this.getPayStaffWxpay().equals(other.getPayStaffWxpay()))
            && (this.getPayStaffQqpay() == null ? other.getPayStaffQqpay() == null : this.getPayStaffQqpay().equals(other.getPayStaffQqpay()))
            && (this.getVipPayStaffQqpay() == null ? other.getVipPayStaffQqpay() == null : this.getVipPayStaffQqpay().equals(other.getVipPayStaffQqpay()))
            && (this.getVipPayStaffWxpay() == null ? other.getVipPayStaffWxpay() == null : this.getVipPayStaffWxpay().equals(other.getVipPayStaffWxpay()))
            && (this.getLastLoginIp() == null ? other.getLastLoginIp() == null : this.getLastLoginIp().equals(other.getLastLoginIp()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getUser() == null) ? 0 : getUser().hashCode());
        result = prime * result + ((getPwd() == null) ? 0 : getPwd().hashCode());
        result = prime * result + ((getRole() == null) ? 0 : getRole().hashCode());
        result = prime * result + ((getShowname() == null) ? 0 : getShowname().hashCode());
        result = prime * result + ((getEmail() == null) ? 0 : getEmail().hashCode());
        result = prime * result + ((getPhone() == null) ? 0 : getPhone().hashCode());
        result = prime * result + ((getAge() == null) ? 0 : getAge().hashCode());
        result = prime * result + ((getSex() == null) ? 0 : getSex().hashCode());
        result = prime * result + ((getCresteTime() == null) ? 0 : getCresteTime().hashCode());
        result = prime * result + ((getCreateIp() == null) ? 0 : getCreateIp().hashCode());
        result = prime * result + ((getLastLoginTime() == null) ? 0 : getLastLoginTime().hashCode());
        result = prime * result + ((getAppkey() == null) ? 0 : getAppkey().hashCode());
        result = prime * result + ((getBalnes() == null) ? 0 : getBalnes().hashCode());
        result = prime * result + ((getZsname() == null) ? 0 : getZsname().hashCode());
        result = prime * result + ((getZspaytype() == null) ? 0 : getZspaytype().hashCode());
        result = prime * result + ((getZspayid() == null) ? 0 : getZspayid().hashCode());
        result = prime * result + ((getIsLocked() == null) ? 0 : getIsLocked().hashCode());
        result = prime * result + ((getUserParent() == null) ? 0 : getUserParent().hashCode());
        result = prime * result + ((getUrl() == null) ? 0 : getUrl().hashCode());
        result = prime * result + ((getIsAutoSett() == null) ? 0 : getIsAutoSett().hashCode());
        result = prime * result + ((getCardBankCode() == null) ? 0 : getCardBankCode().hashCode());
        result = prime * result + ((getPayStaffAlipay() == null) ? 0 : getPayStaffAlipay().hashCode());
        result = prime * result + ((getSettStaff() == null) ? 0 : getSettStaff().hashCode());
        result = prime * result + ((getVipPayStaffAlipay() == null) ? 0 : getVipPayStaffAlipay().hashCode());
        result = prime * result + ((getVipSettStaff() == null) ? 0 : getVipSettStaff().hashCode());
        result = prime * result + ((getPayAlipay() == null) ? 0 : getPayAlipay().hashCode());
        result = prime * result + ((getPayQqpay() == null) ? 0 : getPayQqpay().hashCode());
        result = prime * result + ((getPayWxpay() == null) ? 0 : getPayWxpay().hashCode());
        result = prime * result + ((getPayStaffWxpay() == null) ? 0 : getPayStaffWxpay().hashCode());
        result = prime * result + ((getPayStaffQqpay() == null) ? 0 : getPayStaffQqpay().hashCode());
        result = prime * result + ((getVipPayStaffQqpay() == null) ? 0 : getVipPayStaffQqpay().hashCode());
        result = prime * result + ((getVipPayStaffWxpay() == null) ? 0 : getVipPayStaffWxpay().hashCode());
        result = prime * result + ((getLastLoginIp() == null) ? 0 : getLastLoginIp().hashCode());
        return result;
    }
}